package com.bean;

import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

//登录凭证
@Data
@Entity
@Table(name = "login_creds")
@TableExcel(name="loginCreds", content = "EasyExcel登录凭证",jpaBeanName="com.mapper.repository.LoginCredsRepository")
public class LoginCreds {

    @Id
    private String id;

    private String platform;//平台

    private String name;

    private String url;

    private String username;

    private String password;

    @Column(length = 5000)
    private String remark;//备注

    @Transient
    private String [] belong;

    private String belongs;

    @Column(length = 2000)
    private String other;//其他信息

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @JsonProperty("userid")
    private String creator;
}
